package cn.jeefast.modules.platform.service.impl;

import cn.jeefast.common.entity.MbFeedback;
import cn.jeefast.common.utils.R;
import cn.jeefast.modules.platform.dao.MbFeedback1Dao;
import cn.jeefast.modules.platform.service.MbFeedback1Service;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author theodo
 * @since 2020-01-10
 */
@Service
public class MbFeedback1ServiceImpl extends ServiceImpl<MbFeedback1Dao, MbFeedback> implements MbFeedback1Service {

    @Autowired
    private MbFeedback1Dao feedback1Dao;

    @Override
    public R fbList(Integer page, Integer limit) {
        List<Map> maps = feedback1Dao.fbList(page, limit);
        EntityWrapper ew = new EntityWrapper();
        List list = feedback1Dao.selectList(ew);
        return R.ok().put("data",maps).put("count",list.size());
    }
}
